import UIKit
import Flutter

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
    
    var navigationController: UINavigationController?
    
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    GeneratedPluginRegistrant.register(with: self)
    
    let controller = FlutterViewController()
    
    navigationController = UINavigationController.init(rootViewController: controller)
    window = UIWindow(frame: UIScreen.main.bounds)
    window?.rootViewController = navigationController
    window?.makeKeyAndVisible()
    
    //flutter跳转ios原生界面，及返回
    IosHelper.toIos(uiCtl: navigationController, fCtl: controller)
    
    
    
    
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
    

}
